package com.wang.orders.pojo;

import com.wang.goods.pojo.AGoods;
import com.wang.users.pojo.AUsers;

import java.util.Date;

/**
 * pojo(订单商品明细)
 */
public class AOrdersGoods
{
    private int id;
    private int ordersId;
    private int goodsId;
    private String name;
    private String title;
    private int num;
    private double price;
    private double totalPrice;
    private byte status;
    private Date createTime;
    private Date updateTime;
    private Date pubTime;

    /* 关联字段 */
    private AOrders orders ;
    private AGoods goods ;

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public int getOrdersId()
    {
        return ordersId;
    }

    public void setOrdersId(int ordersId)
    {
        this.ordersId = ordersId;
    }

    public int getGoodsId()
    {
        return goodsId;
    }

    public void setGoodsId(int goodsId)
    {
        this.goodsId = goodsId;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public int getNum()
    {
        return num;
    }

    public void setNum(int num)
    {
        this.num = num;
    }

    public double getPrice()
    {
        return price;
    }

    public void setPrice(double price)
    {
        this.price = price;
    }

    public double getTotalPrice()
    {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public byte getStatus()
    {
        return status;
    }

    public void setStatus(byte status)
    {
        this.status = status;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public Date getPubTime()
    {
        return pubTime;
    }

    public void setPubTime(Date pubTime)
    {
        this.pubTime = pubTime;
    }

    public AOrders getOrders()
    {
        return orders;
    }

    public void setOrders(AOrders orders)
    {
        this.orders = orders;
    }

    public AGoods getGoods()
    {
        return goods;
    }

    public void setGoods(AGoods goods)
    {
        this.goods = goods;
    }
}
